From: Chong Yidong Date: Sat, 22 Jan 2011 03:53:06 +0000 (-0500) Subject: * man.el (Man-highlight-references0): Use make-button (Bug#7881). X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~5111 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=c31ed3198e6680d141e4620b77a9e4a5da1df7c8;p=emacs.git * man.el (Man-highlight-references0): Use make-button (Bug#7881). --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index fc03dcd4d64..30345d370d7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2011-01-22 Chong Yidong + + * man.el (Man-highlight-references0): Use make-button (Bug#7881). + 2011-01-22 Phil Hagelberg * pcmpl-unix.el (pcmpl-ssh-config-file): New option. diff --git a/lisp/man.el b/lisp/man.el index d22ea9cebb6..98257e62bfc 100644 --- a/lisp/man.el +++ b/lisp/man.el @@ -1154,7 +1154,9 @@ default type, `Man-xref-man-page' is used for the buttons." (goto-char (point-min)) nil))) (while (re-search-forward regexp end t) - (make-text-button + ;; An overlay button is preferable because the underlying text + ;; may have text property highlights (Bug#7881). + (make-button (match-beginning button-pos) (match-end button-pos) 'type type